<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>结构伪类2</title>
    <a href="../选择器首页.html">首页</a>
</head>
<header class="header">
    <div class="nav-box">
        <h2>结构伪类2</h2>
<body>
    <div class="c-wenben">
        <p>p0</p>
        <h1>h1</h1>
        <p>p1</p>
        <h2>h2</h2>
        <p>p2</p>
        <h3>h3</h3>
        <p>p3</p>
    </div>

    <style>
        p:nth-of-type(2) {
            color: red;
        }

        .c-wenben {
            float: left;
        }

        * {
            margin: 0;
            padding: 0;
            text-decoration: none;
            list-style: none;
        }
    </style>
</body>

</html>